﻿using GPS.DataAccessLayer;
using PagedList;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GPS.ENTITYS
{
    public class ViewModelSHANGDT_MONHOC
    {
        public int? Page { get; set; }
        public string pDTMONHOC_MA { get; set; }
        public string pDTMONHOC_HANGDT_MA { get; set; }
        public string pDTMONHOC_TEN { get; set; }
        public string pDTMONHOC_ACTIVE { get; set; }
        public IPagedList<SHANGDT_MONHOC> SearchResults { get; set; }
    }

    public class CrudModelSHANGDT_MONHOC
    {
        [Required(ErrorMessage = "Môn học bắt buộc nhập")]
        public string DTMONHOC_MA { get; set; }
        [Required(ErrorMessage = "Hạng đào tạo bắt buộc nhập")]
        public string DTMONHOC_HANGDT_MA { get; set; }
        public string DTMONHOC_TEN { get; set; }
        [DisplayFormat(DataFormatString = "{0:0}", ApplyFormatInEditMode = true)]
        public decimal? DTMONHOC_TONGGIO { get; set; }
        [DisplayFormat(DataFormatString = "{0:0}", ApplyFormatInEditMode = true)]
        public decimal? DTMONHOC_GIOLT { get; set; }
        [DisplayFormat(DataFormatString = "{0:0}", ApplyFormatInEditMode = true)]
        public decimal? DTMONHOC_GIOTHHINH { get; set; }
        [DisplayFormat(DataFormatString = "{0:0}", ApplyFormatInEditMode = true)]
        public decimal? DTMONHOC_GIOTHDUONG { get; set; }
        [DisplayFormat(DataFormatString = "{0:0}", ApplyFormatInEditMode = true)]
        public decimal? DTMONHOC_KIEMTRA { get; set; }
        public string DTMONHOC_MOTA { get; set; }
        public string DTMONHOC_ACTIVE { get; set; }
        public DateTime? DTMONHOC_NGAYNHAP { get; set; }
        public string DTMONHOC_NGUOINHAP { get; set; }
        public DateTime? DTMONHOC_NGAYSUA { get; set; }
        public string DTMONHOC_NGUOISUA { get; set; }
    }
}
